<?php

// $Id: vpage_sitemap_form_view.class.php 1570 2009-01-13 12:44:02Z ogrebg $

require_once(TANGRA_MAIN_DIR.'form/fields/text/form_field_text_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/select/form_field_select_semidynamic_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/select/form_field_select_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/checkbox/form_field_checkbox_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/integer/form_field_integer_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class VPage_Sitemap_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_in_sitemap = $form->get_field('in_sitemap');
		$f_in_sitemap_view = new Form_Field_Checkbox_View($form->get_name().'_'.$f_in_sitemap->get_name(), $f_in_sitemap);
		$this->add_field_view('in_sitemap', $f_in_sitemap_view);

		$f_sitemap_weight = $form->get_field('sitemap_weight');
		$f_sitemap_weight_view = new Form_Field_Select_View($form->get_name().'_'.$f_sitemap_weight->get_name(), $f_sitemap_weight);
		$this->add_field_view('sitemap_weight', $f_sitemap_weight_view);

		$f_sitemap_change_freq = $form->get_field('sitemap_change_freq');
		$f_sitemap_change_freq_view = new Form_Field_Select_View($form->get_name().'_'.$f_sitemap_change_freq->get_name(), $f_sitemap_change_freq);
		$this->add_field_view('sitemap_change_freq', $f_sitemap_change_freq_view);
	}
}